// 流文件的操作
const fs = require('fs');

const rs = fs.createReadStream('./1.png');
const ws = fs.createWriteStream('./2.png');
rs.pipe(ws);